package com.cskaoyan.service.admin;

import com.cskaoyan.bean.BasePageInfo;
import com.cskaoyan.bean.MarketCoupon;
import com.cskaoyan.bean.MarketCouponUser;
import com.cskaoyan.bean.param.CommonData;

public interface MarketCouponService {
    // 显示查询优惠券
    CommonData<MarketCoupon> list(String name, Short type, Short status, BasePageInfo basePageInfo);

    // 新增优惠券
    MarketCoupon create(MarketCoupon marketCoupon);

    // 读取详情
    MarketCoupon read(Integer id);

    // 优惠券详情页显示用户
    CommonData<MarketCouponUser> listUser(Integer couponId, Integer userId, Short status, BasePageInfo basePageInfo);

    // 更新优惠券信息
    MarketCoupon update(MarketCoupon marketCoupon);

    // 删除优惠券
    int delete(MarketCoupon marketCoupon);
}
